﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZhonTai.Admin.Core.Validators;
using ZhonTai.Admin.Domain.Patrol;

namespace ZhonTai.Admin.Services.Patrol.Dto
{

    public class FormGetPageDto
    {
        /// <summary>
        /// 部门Id
        /// </summary>
        public long? OrgId { get; set; }
    }

    public class FormAddInput
    {
        /// <summary>
        /// 表单名称
        /// </summary>
        public string FormName { set; get; }

        /// <summary>
        /// 表单代码
        /// </summary>
        public string FormCode { set; get; }


        public LabelPosition LabelPosition { set; get; }

        public int LabelWidth { set; get; }

        public string Size { set; get; }

        public string CustonClass { set; get; }

        public int Cols { set; get; }
    }

    public class FormUpdateInput:FormAddInput
    {
        [Required]
        [ValidateRequired("请选择项")]
        public long id { set; get; }
    }

    /// <summary>
    /// 表单-表单项配置
    /// </summary>
    public class FormAddItemInput
    {
        public long FormId { set; get; }

        /// <summary>
        /// 字典项
        /// </summary>
        public ICollection<FormItemUpdateInput> Controls { set; get; }
    }

}
